﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KEEPER_BRR_13dotNET.DataAccess;
using KP_CommonLibrary.KP_Business;
using System.Data;

namespace KEEPER_BRR_13dotNET.BusinessLogic
{
    public class BL_KPDmLoaiHs : KP_BLListBase
    {
        private DAL_KPDmLoaiHs DALDmLoaiHs { get; set; }
        public BL_KPDmLoaiHs()
        {
            DALDmLoaiHs = new DAL_KPDmLoaiHs();
            DataAccess = DALDmLoaiHs;
        }
        public void Fill(DataSet ds, bool clearBeforeFill)
        {
            DataAccess.Fill(ds, "", clearBeforeFill, "[Ma_LoaiHs]", "[Ten_LoaiHs]");
        }
        public DataTable SelectGiayToKemTheo(string maLoaiHs)
        {
            DAL_KPGiayToKemTheo dal = new DAL_KPGiayToKemTheo();
            return dal.SelectChoLoaiHoSo(maLoaiHs);
        }
        public void Insert(DataRow row, DataTable tblGiayTo)
        {
            DALDmLoaiHs.Insert(row, tblGiayTo);
        }
        public void Update(DataRow row, DataTable tblGiayTo)
        {
            DALDmLoaiHs.Update(row, tblGiayTo);
        }

    }
}
